using System.Threading.Tasks;

using Android.Content;

namespace Outcoder.LauncherModel.Launchers
{
	public class MarketplaceDetailLauncher : LauncherBase, IMarketplaceDetailLauncher
	{
		public override Task<bool> ShowAsync()
		{
			string url = "https://play.google.com/store/apps/details?id=" + ContentIdentifier;

			var intent = new Intent(Intent.ActionView, Android.Net.Uri.Parse(url));

			Android.App.Application.Context.StartActivity(intent);

			return Task.FromResult(true);
		}

		public string ContentIdentifier { get; set; }
	}
}